using UnityEngine;
using System.Collections;

public class SendJobType : MonoBehaviour {
	
	public GameDefine.Profession profession = GameDefine.Profession.MENGJIANG;
	
	public ModelDisplay modelDisplay;
	
	int id;
	UICheckbox checkbox;
	void Start(){
		id = (int)profession;
		
		checkbox = GetComponent<UICheckbox>();
		
		if(checkbox.isChecked)
			CreateRoleInfo.GetInstance().Profession = id + CreateRoleInfo.GetInstance().Sex;
	}
	
	void OnClick(){
		modelDisplay.ShowJob(id);
		CreateRoleInfo.GetInstance().Profession = id;
	}
}
